https://www.geeksforgeeks.org/reverse-doubly-linked-list-groups-given-size/