Pregunta de entrevista de Casa (India)

long coding involving threads and scheduling