OutSystems interview question

2 leetcode algorithm questions (easy-medium)