Toptal interview question

2d array, string manipulation, two pointers, sliding windows etc.