Stock span Question


Getting wrong answer please modify my code or suggest any change


use this