Total Overlap Video Solution

So, I was not able to give yesterday’s CodeChef Div3 contest but I saw that this was the problem that had the least number of correct submissions. When I tried to solve it myself, I realised it was just based on simple observations and some presence of mind so I thought why not make a video explaining my approach to this problem.
Problem Link:
Video Link: