First and Last Purchase per Customer - Hard SQL Window Functions Interview Problem | Unnested