Solutions to Raghav's interview and algorithm questions.