Pergunta de entrevista da empresa Medtronic

There was a small reverse-engineering problem that took me a little time.