digio Interview Question

Leet code easy and hard