Trinket

Click Run to see output here.