Photometric and spectroscopic analysis of YY CrB