Luxoft Interview Question

Recursion coding in hacker rank about parsing.