Reverse String Using Lambda Function In Python With If Statement