This question was asked in google first round. Can anyone help solve this.
Test Case: Jan 1, 30Sep20(Yesterday),40
Ans: 30$
Because before the update the last product price was 30sointhelast30daywindowminpriceis30