QI-CAP interview question

Hackerrank test with 3 DSA Problems.