General Motors (GM) interview question

Write program to solve morse code