SmallDay interview question

OOPS concept, Reverse word, Recursive function, Control flow