ServiceNow interview question

Leetcode problems - coin change and longest substring without repeating characters