Description連結リストを反転する与えられたリンクドリストを反転させ、最終的に反転されたリンクドリストを出力してください。入力入力はプログラムによって自動的に処理されるため、特に何もする必要はありません。出力プログラムは反転後のリンクドリストを出力してください。例入力出力54 5 6 1 -4-4 1 6 5 4ConstraintsTime limit: 1.6 secondsMemory limit: 512 MBOutput limit: 1 MBTo check your solution you need to sign inSign in to continueSign in to your accountSign in with GoogleSign in with FacebookSign in with MicrosoftSign in with emailBy continuing, you agree to our Terms of Service and Privacy Policy.