A Capgemini Government Solutions conference has a fixed number of members. During each phase, every member shakes hands with every other member exactly once. For example, the pre-meeting and post-meeting phases represent two separate rounds, so the same pair may shake hands twice.
Given the number of members and the number of phases, return the total number of handshakes. Do not simulate individual pairs.
Implement count_handshakes(member_count, phases).
member_count, the number of conference members, and phases, the number of independent handshake phases.def count_handshakes(member_count, phases):