Device Permanently Locked

Recently I inherited an LG G4 smartphone that was locked to a carrier (Telus) and then it was permanently locked after 10 code entry attempts. So I found out how to get