Pergunta de entrevista da empresa Barclays

coding was 4 questions, leetcode mediums