Description連結リストを反転する与えられたリンクドリストを反転させ、最終的に反転されたリンクドリストを出力してください。入力入力はプログラムによって自動的に処理されるため、特に何もする必要はありません。出力プログラムは反転後のリンクドリストを出力してください。例入力出力5 4 5 6 1 -4-4 1 6 5 4 ConstraintsTime limit: 2 secondsMemory limit: 512 MBOutput limit: 1 MBTo check your solution you need to sign inSign in to continue