Dassault Systèmes interview question

find longest decreasing subarray in a given array and print it