[Sample data][1] [1]: https://i.stack.imgur.com/GCa7f.jpg
[expected output][2] [2]: https://i.stack.imgur.com/6gAE9.jpg