Pergunta de entrevista da empresa IBM

Random hackerrank questions, mostly was not hard.