Broadridge interview question

small programs like string reverse,