As the current is ahead then the circuit is capacitive. hence Y has to be a capacitor. As impedence =$$sqrt{R^2+X_c^{2}}$$ thus, R=100 $$Omega $$ $$dfrac{X_c}{R}=tan dfrac{pi }{4}$$ $$X_C=R=100$$ Z=$$100sqrt2$$ Therefore,  $$I_{rms }=dfrac{V_{rms }}{Z}=dfrac{141}{100sqrt2}=09987$$ Nearly $$1Omega $$