There is no working unlock code for Build-a-Lot 2. The answer that circulates on this question, a phone unlock code for a Rio device, has nothing to do with the game and will not do anything if you enter it.
Build-a-Lot is a paid casual title, and its levels unlock through play rather than through a code entry screen. You progress by completing the property goals in each scenario, which then opens the next one.
Walkthroughs are the reliable answer here. The later scenarios get genuinely fiddly about the order in which you buy, renovate, and sell, and a step-by-step guide will save you more time than any code. Check the version you own, since the mobile and PC releases do not always match level for level.