Instructions for checking whether iPhone has had its components replaced or not

Instructions for checking whether the iPhone has had its components replaced or not. Before buying an old iPhone, many users will wonder if the iPhone has ever been repaired.