Pregunta de entrevista de Splunk

first round - math question (not seen on leetcode problem) second round - leetcode easy string problem