HARMAN Interview Question

Write program to reverse chars of words in a given line.