Pergunta de entrevista da empresa SS&C Advent

Mathematical questions (fractions) and riddles.