Coexistence of Weyl and Type‐II Triply Degenerate Fermions in a Ternary Topological Semimetal YPtP