Pregunta de entrevista de Epic

several different coding problems similar to HackerRand