Alternative solution

A simple single line alternative