Pergunta de entrevista da empresa Fidessa

Two programming questions on Hacker rank, time limited challenges. First question was straight forward, second question was vague and provided inconsistent logic/solutions on test cases. Is this really the best way to interview for a software engineering position? I don't think it is.