Tubular Labs interview question

standard algorithm questions