Helix Tech interview question

No difficulty