Classes of Exact Solutions to Regge-Wheeler and Teukolsky Equations