X Interview Question

standard hackerrank problems