Mobiversa interview question

recursion,switch case,basic aptitute for round 1