Hi, all! Based on the work done in previous weeks, I started implementation of the solution. We (Lunar and me) had discussed a lot regarding the implementation of the solution and implementation of test cases. Code snippet and revision can be found here: https://gist.github.com/satyamz/7544b95b83575321b6f3ab009d096841/revisions Thanks! Satyam Zode