Citadel Interview Question

2 LC Hard Questions on Hackerrank