Luxoft interview question

Recursion coding in hacker rank about parsing.