How to code this

have a look at my answer for a similar question here

1 Like