Pergunta de entrevista da empresa IBM

Standard Coding Algorithm Question followed by SQL