The only way to unlock the phone now is through factory reset. Turn off the phone and then press Volume up + Power buttons until the phone enters Recovery menu. From that recovery menu, select Wipe ...
Other questions about "How to format tecno p5 when locked with code"