Constructive Setting of the Density Ratio Estimation Problem and its Rigorous Solution