Added solution using list comprehension