EPAM Systems Interview Question

The coding round: Easy -> Normal logical Medium -> based on Binary Search Hard -> DP