As per the latest Google Algorithm, buying links or trading links from other websites is consider under Google Link Scheme Penalty. But guest post, won’t come under the link scheme penalty. Contributing Article in the nonrelevant website will never help in ranking, first need to find the websites which link to your competitors and find their contact details and approach them in a soft manner.