how can i implement this logic ?
y
how can i implement this logic ?