Pergunta de entrevista da empresa Samsung Electronics

algorithm/CS based problem